package IMIC.NGUYENVANDOAN.SWINGDEMO;

import java.util.List;

public class Models {

    public boolean KTraSuTonTaiTK(UserEntity objUser) {
        List<UserEntity> lisUser = DataRepository.GetElements();
        for (UserEntity userEntity : lisUser) {
            if (userEntity.getUserName().equals(objUser.getUserName())
                    && userEntity.getPassWord().equals(objUser.getPassWord())) {
                return true;
            }
        }
        return false;
    }
}
